
Overview
Testing site url : http://quotation-partner.univox.com.au/

There are 3 API integrated in this portal
1) ABN lookup
2) Address Lookup (Address finder)
3) Nexmo (2 -way sms code verification, here we use php option code option)

we have used mainly JavaScript object; jQuery and each section will push to relevant object.
Bellow are the main JavaScript objects. you are able to "POST" collected information into object via json format.
we have done front end validation.
Before start integration, appreciate go through the process up to end section. 
On the last section there are buttons.
1)	Back - go to back as usually
2) 	In Last step "CREATE QUOATATION" button- This button should be the final data posting to database (I have put console log for the all the objects with data.) You will have to write coding for this button for posting data via API or ajax whatever you prefer.

3) 	"QUOATION" button - On production this button and its related coding needs to remove. It is a temporary one to get the idea for the next developer that final quotation pages consisting in which format. 
All the posted data return back to customer according to this fomat via email. you will have to make a mechanisms and coding for this.


Section-1 - DEVICES
objCloudPbxPlan{
	"phoneOption": "Existing and New phones", 
	"numDeskphone": "1", 
	"numCordless": "1", 
	"numConference": "1", 
	"numReModule": "1",
	"numSoftphones": "1",
	"numDoorphone": "1",
	"numEP": 4,
	"arrayExistingPhones":[{manufactureEP: "Avaya",numUseEP: "3"}, {manufactureEP: "Cisco",numUseEP: "1"}],
}

Section-2 - NUMBERS
objPhoneNumbers={
    "arrayExistingPhoneNumbers":[{prefixEPN: "(02)", qtyEPN: "1", usedForEPN: "Main phone number"},{prefixEPN: "(03)", qtyEPN: "2", usedForEPN: "Secondary phone number"}],
    "arrayNewPhoneNumbers":[{prefixNPN: "(02) NSW", qtyNPN: "1", usedForNPN: "Main phone number"},
							{prefixNPN: "(03) VIC", qtyNPN: "3", usedForNPN: "Direct in-dial phone number"},
							{prefixNPN: "(07) QLD", qtyNPN: "2", usedForNPN: "Direct in-dial phone number"}]
}

Section-3 - CALLS
objCallUsage={
    "localAndNationalCalls":{"call_duration": "", "times": "10"},
    "callsToMobilesPhonesInAustralia":{"call_duration": "1", times: "80"},
    "internationalCalls":{"call_duration": "2", "times": "10"},
    "conferenceCalls":{"call_duration": "2", "times": "30"},
    "faxToEmailCalls":{"call_duration": "", "times": "75"},
    "inboundCalls":{"call_duration": "", "times": "0"}
}

Section-4 - INTERNET
objInternetConnection={
	"internetOption": "I have an active internet service", 
	"newInternetConnectionRequire": "No"
}
		
Section-5 - PHONES
objPhoneSelection={
	[{"category": "Desk phones"id: "4", "imageurl": "http://univox.com.au/product-images/grandstream/GXP2140.jpg", "manufacturer": "Grandstream", "modelno": "GXP2140", "price": "304", "producttype": "Product", "qty":"1", "series": "GXP21XX"},
	{"category": "Desk phones"id: "5", "imageurl": "http://univox.com.au/product-images/grandstream/GXP2170.jpg", "manufacturer": "Grandstream", "modelno": "GXP2170", "price": "356", "producttype": "Product", "qty":"2", "series": "GXP21XX"},
	{"category": "Desk phones"id: "6", "imageurl": "http://univox.com.au/product-images/grandstream/GXP2200EXT.jpg", "manufacturer": "Grandstream", "modelno": "GXP2200EXT", "price": "266", "producttype": "Accessories", "qty": "1", "series": "GXP21XX"}]
};

Section-6 - OPTIONS
objOptions={
    "option1":"Recordings",
    "option2":"Headsets",
    "option3":"",
}
		
Section-7 - DETAILS
ObjDetails={
    "Contactdetails":{"emailAddress": "hiroshanawanni@gmail.com", "firstName": "Chaminda", "lastName": "Wanniarachchi", "phoneNumner": "+61449173025", "title": "Mr"},
    "Entitydetails":{"entity": "ABN holder", "entityName": "WANNIARACHCHI CHAMINDA HIROSHANA", "entityType": ""},
    "Addressdetails":{"postCode": "3407", "state": "VIC", "streetName": "Urquhart", "streetNumber": "34", "streetType": "Street", "suburb": "BALMORAL", "unitNumber": null}
}


Important Notes
we have done products (Section - 5) getting data json files.
	location - /assets/json
1) products_info.json (All the products with category and other product related Infor with this) and images comming from shard hosting server.

Nexmo 
Related files
/vender
/ cancel.php
/ request.php
/ verify.php
